<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>자기 정보 수정</title>
<link type="text/css" href="/Yogiro/css/jquery-ui.css" rel="stylesheet" />	
	
<script type="text/javascript" src="/Yogiro/js/jquery.js"></script>
<script type="text/javascript" src="/Yogiro/js/jquery-ui.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#date").datepicker({
		"dateFormat":"yy-mm-dd",
		changeMonth: true,
		changeYear:	true
	});
});
function update() {
	var reg = confirm("이대로 수정 하시겠습니까?");
	if(reg){		
	document.reg.submit();
	}else{
		return;
	}
}

function findZipcode() {
	window.open("member/find_zipcode.jsp","","width=400, heigt=400, resizable=no");
}
$.datepicker.regional['ko']= {
        closeText:'닫기',
        prevText:'이전달',
        nextText:'다음달',
        currentText:'오늘',
        monthNames:['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'],
        monthNamesShort:['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'],
        dayNames:['일','월','화','수','목','금','토'],
        dayNamesShort:['일','월','화','수','목','금','토'],
        dayNamesMin:['일','월','화','수','목','금','토']};
  
  $.datepicker.setDefaults( $.datepicker.regional[ 'ko' ] );
</script>
</head>
<body>
<form action="/Yogiro/member.do" name="reg">
<input type="hidden" name="method" value="setInfo">
<input type="hidden" name="Info" value="0">
ID : ${sessionScope.mto.memberId }<br>
<input type="hidden" name="level" value="${sessionScope.mto.memberLevel }">
비밀번호 :<input type="text" name= "password" value="${sessionScope.mto.memberPassword }"><br>
이름 :<input type="text" name= "name" value="${sessionScope.mto.memberName }"><br>
생년월일(주민등록상의) :<input type="text" name= "birthday" id="date" value="${sessionScope.mto.memberBirthday }"><br>
주민등록번호(뒷자리) :<input type="text" name="detail" value="${sessionScope.mto.memberDetail }">
<input type="button" value="우편번호 찾기" onclick="findZipcode()"><br>
우편번호 :<input type="text" name= "zipcode" value="${sessionScope.mto.memberZipcode }"><br>
주소 :<input type="text" name= "address1" size="100" value="${sessionScope.mto.memberAddress1 }" ><br>
상세주소 :<input type="text" name= "address2" value="${sessionScope.mto.memberAddress2 }"><br>
<input type="button" value="확인" onclick="update()">
<input type="reset" value="초기화">
</form>
</body>







